{extend name="public/base" /}
{block name="title"}说说列表{/block}

{block name="content"}
<h2 class="sub-header">说说管理</h2>[ <a href="{:url('add')}">添加说说</a> ]<br><br>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead><tr>
<th>编号</th>
<th style="width:180px;">图片</th>
<th>内容</th>
<th>管理</th>
</tr></thead>
<tbody>
<?php if($list){foreach($list as $row){ ?><tr>
<td><?php echo $row['id']; ?></td>
<td><?php if($row['img_list']){ foreach($row['img_list'] as $k=>$value) { ?><img src="<?php if(imgmatch($value['url'])){echo $value['url'];} ?>" style="margin-right:2px;margin-top:2px;width:48px;height:48px;"><?php }} ?></td>
<td><?php echo $row["desc"]; ?></td>
<td><a href="{:url('edit')}?id=<?php echo $row['id']; ?>">修改</a> | <a onclick="delconfirm('{:url('del')}?id=<?php echo $row['id']; ?>')" href="javascript:;">删除</a></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<form id="searcharc" class="navbar-form" action="{:url('index')}" method="get">
<div class="form-group"><input type="text" name="keyword" id="keyword" class="form-control required" placeholder="搜索关键词..."></div>
<button type="submit" class="btn btn-info" value="Submit">搜索一下</button></form>

<div class="backpages">{$page}</div>
{/block}